package com.bootdo;

import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
@EnableTransactionManagement
@ServletComponentScan
@MapperScan({"com.bootdo.*.dao","com.bootdo.program.*.dao"})
@SpringBootApplication
@EnableCaching
public class BootAdminApplication {

	public static void main(String[] args) {

		SpringApplication.run(BootAdminApplication.class, args);
		System.out.println("ヾ(◍°∇°◍)ﾉﾞ    boot-admin启动成功      ヾ(◍°∇°◍)ﾉﾞ\n" +
				"  _                 _                   _           _       \n" +
				" | |               | |                 | |         (_)      \n" +
				" | |__   ___   ___ | |_ ______ __ _  __| |_ __ ___  _ _ __  \n" +
				" | '_ \\ / _ \\ / _ \\| __|______/ _` |/ _` | '_ ` _ \\| | '_ \\ \n" +
				" | |_) | (_) | (_) | |_      | (_| | (_| | | | | | | | | | |\n" +
				" |_.__/ \\___/ \\___/ \\__|      \\__,_|\\__,_|_| |_| |_|_|_| |_|\n" +
				"                                                            \n" +
				"                                                         ");
	}
}
